<!DOCTYPE html>
<html>
<head>
    <title>公众号配置表</title>
    <#include "/header.html">
</head>
<body>
<style>
    th{
        text-align: center;
    }
</style>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">公众号标识</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.gzhCode" placeholder="公众号标识"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">公众号名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.gzhName" placeholder="公众号名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">备注</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.remark" placeholder="备注"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">开放平台分组标识</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.openGroupCode" placeholder="开放平台分组标识"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">会员的前端域名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.realmName" placeholder="会员的前端域名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">app_id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.appId" placeholder="app_id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">secret</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.secret" placeholder="secret"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">token</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.token" placeholder="token"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">aes_key</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.aesKey" placeholder="aes_key"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退款模板消息ID</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.refundTempId" placeholder="退款模板消息ID"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">提现的模板消息</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.withdrawTempId" placeholder="提现的模板消息"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">文章库缓存前置域名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.realmResource" placeholder="文章库缓存前置域名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">消息推送缓存前置域名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.realmMessage" placeholder="消息推送缓存前置域名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">服务器地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.serverUrl" placeholder="服务器地址"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label">公众号关注地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.subscribeUrl" placeholder="公众号关注地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">微信商户号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.mchId" placeholder="微信商户号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">支付密匙</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.mchKey" placeholder="支付密匙"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">前端使用指南url</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.tutorialUrl" placeholder="前端使用指南url"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">推送应用的url</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.taskUrl" placeholder="推送应用的url"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label">会员开通成功提醒</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.buyVipMessagePushTempId" placeholder="会员开通成功提醒"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">结算成功通知</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.pushBuyVipTempId" placeholder="结算成功通知"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">申请加入通知</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.applyMessagePushTempId" placeholder="申请加入通知"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">申请通过提醒</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.passesMessagePushTempId" placeholder="申请通过提醒"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label">是否启动公众号引流</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.isDrainage" placeholder="是否启动公众号引流"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">每日报表提醒</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.cailyPaperTempId" placeholder="每日报表提醒"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">客服运营周报</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.weeklyTempId" placeholder="客服运营周报"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">服务到期提醒</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.expirationReminderTempId" placeholder="服务到期提醒"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">续费提醒</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.renewalReminderTempId" placeholder="续费提醒"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label">客流数据通知</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.feedbackTempId" placeholder="客流数据通知"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">结算成功通知(用于佣金抵扣提醒)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.commissionDeductionTempId" placeholder="结算成功通知(用于佣金抵扣提醒)"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">设置品牌提示</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.setBrandTempId" placeholder="设置品牌提示"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label">推送的休眠时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.sleepTime" placeholder="推送的休眠时间" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">合作推广链接</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="sysgzh2.cooperationUrl" placeholder="合作推广链接"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>

    <!-- layer.js 弹窗内容 -->
    <div id="layerSet" style="display: none">
        <div class="panel panel-default" style="text-align: center">
            <form class="form-horizontal">
                <div class="form-group">
                    <div class="col-sm-2 control-label">公众号标识</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="currentGzhCode" readonly />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">公众号名称</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" v-model="currentGzhName" readonly />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">当前月份</div>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="currentMonth" readonly />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">粉丝目标数量</div>
                    <div class="col-sm-10">
                        <input type="number" id="fansCount" class="form-control" placeholder="粉丝目标数量"/>
                    </div>
                </div>
                <button type="button" class="btn btn-success" @click="updateGzhFollow" style="width: 82%">保存</button>
            </form>
        </div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/sysgzh2.js?_${.now?long}"></script>
</body>
</html>